package com.example.lib_car

import com.example.lib_common.mvi.BaseRepository
import com.example.lib_common.mvi.ResponseEntity
import com.example.network_sdk.HttpType
import com.example.network_sdk.NetWorkFactory
import kotlinx.coroutines.flow.Flow
import retrofit2.create

class ParkingRepository :BaseRepository() {

    fun requestAllSpace() :Flow<ResponseEntity<List<ParkingEntity>>>{
        return NetWorkFactory.factory(HttpType.TOKEN)!!
            .create(ApiService::class.java)
            .requestAllSpace()
    }

}